<?php
/**
 * Description of MenuService
 *
 * @author gun
 */

class Admin_Model_MenuService extends Admin_Model_BaseService {
    protected $daoClass = 'Admin_Model_DbTable_Menu';
    
    public function findRow($where = array()) {
        $data = $this->getDao()->findRow($where);
        
        return $data;
    }
    
    public function findAll($where = array(), $options = array()) {
        $data = $this->getDao()->findAll($where, $options);  
        
        return $data;
    }
    
    public function findAllMenu($where = array(), $options = array()) {
        $data = $this->getDao()->findAllMenu($where, $options);  
        
        return $data;
    }
    
    public function countRows($where = '') {
        return $this->getDao()->countRows($where);
    }
    
    public function doUpdate($data = array(), $where = '') {
        return $this->getDao()->doUpdate($data, $where);
    }
    
    public function doSave($data = array()) {
        return $this->getDao()->doSave($data);
    }
    
    public function doDelete($where = '') {
        return $this->getDao()->doDelete($where);
    }
        
    public function findGroupMenu($groupMenu) {
        return $this->getDao()->findGroupMenu($groupMenu);
    }
    
    public function lookupParentMenu($groupMenu) {
        return $this->getDao()->lookupParentMenu($groupMenu);
    }
    
    public function isChild($menuID = '') {
        return $this->getDao()->isChild($menuID);
    }
    
    public function getChildMenu($groupID = '', $parentID = '') {
        return $this->getDao()->getChildMenu($groupID, $parentID);
    }
    
    public function getMenuForAcl() {
        return $this->getDao()->getMenuForAcl();
    }
}

?>
